package com.example.travel.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.travel.common.AjaxResult;
import com.example.travel.domain.entity.Spot;
import com.example.travel.domain.entity.User;
import com.example.travel.domain.request.UserPasswordVo;

import javax.mail.MessagingException;
import java.util.List;

/**
 * @Author : LinQingLiang
 * @file : UserService.java
 * @Since : 2023/1/13 16:29
 */
public interface UserService extends IService<User> {

    Page page(User user, Integer pageNum, Integer pageSize);

    Page shopUser(Integer id, Integer pageNum, Integer pageSize);

    void deleteByUserSpotId(Integer userSpotId);

    void updatePassword(UserPasswordVo userPasswordVo);

    List<Spot> userCollected(Integer userId);

    AjaxResult sendEmail(String email,Integer type) throws MessagingException;
}
